package org.lc.stk.model.question.impl.qa;

import org.hibernate.annotations.Comment;
import org.lc.stk.model.question.Question;

import jakarta.persistence.Entity;
import jakarta.persistence.OneToOne;
import jakarta.persistence.Table;

/**
 * 问答题：包括简答、论述、解释等
 */
@Entity
@Table(name = "qa_question")
@Comment("问答题")
public class QaQuestion extends Question {

    @OneToOne
    @Comment("题干")
    private QaQuestionStem stem;

    @OneToOne
    @Comment("答案")
    private QaQuestionAnswer answer;

    public QaQuestionStem getStem() {
        return stem;
    }

    public void setStem(QaQuestionStem stem) {
        this.stem = stem;
    }

    public QaQuestionAnswer getAnswer() {
        return answer;
    }

    public void setAnswer(QaQuestionAnswer answer) {
        this.answer = answer;
    }

}
